<?php
namespace app\model\question;

use think\Model;

class ZxlKnowStoreQuestionCorrectionModel extends Model
{
    protected $name = 'zxl_know_store_question_correction';

    /**
     * 刷题模式
     * 
     * @return array
     */
    public static function getType($key = '')
    {
        $type = [
            1 => "答案有问题", 
            2 => "答案与解析不相符",
            3 => "有错别字",
            4 => "选项有问题",
            5 => "其他",
        ];
        if('' !== $key){
            if(array_key_exists($key,$type)){
                return $type[$key];
            }
            return false;
        }
        return $type;
    }
}